<script setup>

</script>

<template>
  <router-link class="button" to="/sign">
    {{ $t('goToLogin') }}
  </router-link>
</template>

<style scoped>
.button {
  background-color: #fff;
  display: inline-block;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: 600;
  font-size: 1em;
  padding: 0.35em 1em;
  color: var(--btn-border);
  border: 0.15em solid var(--btn-border);
  border-radius: 2em;
  transition: color 4s;
  white-space: nowrap;
}

.button::before,
.button::after {
  content: "";
  position: absolute;
  top: -1.5em;
  z-index: -1;
  width: 200%;
  aspect-ratio: 1;
  border: none;
  border-radius: 40%;
  background-color: rgba(0, 0, 255, 0.25);
  transition: 4s;
} 

.button::before {
  left: -80%;
  transform: translate3d(0, 5em, 0) rotate(-340deg);
}

.button::after {
  right: -80%;
  transform: translate3d(0, 5em, 0) rotate(390deg);
} 

.button:hover,
.button:focus {
  color: white;
}

.button:hover::before,
.button:hover::after,
.button:focus::before,
.button:focus::before {
  transform: none;
  background-color: var(--btn-border);
}
</style>